<template>
  <div>
    <div class="page-title">
      <div class="left-color"></div>
      <h1>{{ pageTitle }}</h1>
    </div>
    <div class="grey"></div>
  </div>
</template>

<script>
export default {
  name: 'PageTitle',
  props: {
    pageTitle: {
      type: String,
      default: "测试数据",
    },
  },
};
</script>

<style lang="scss" scoped>
.page-title {
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;

  .left-color {
    width: 5px;
    height: 26px;
    background-color: #f88023;
    margin: 0 20px 0 0;
  }

  h1 {
    font-size: 20px;
    font-family: MicrosoftYaHei-Bold;
    font-weight: bold;
    color: #333;

  }
}
.grey {
  height: 10px;
  width: calc(100% + 40px);
  background-color: #EFF1F5;
  margin: 0 -20px;
}
</style>
